<template>
  <div id="app">
    <van-nav-bar
      title="娥了么"
      
      right-text="关闭"
      left-arrow
     
      @click-right="onClickRight"
    />
   

      <span><router-link to="/">点餐</router-link></span>
      <span><router-link to="/about">评价</router-link></span>
      <span><router-link to="/shop">商家</router-link></span>
    
   
    <router-view />
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    // onClickLeft() {
    //   Toast('返回');
    // },
    onClickRight() {
      Toast("关闭");
    }
  }
};
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

 a.router-link-exact-active {
   border-bottom: solid 3px cornflowerblue;
}
span{
  display: inline-block;
  margin-left: 60px;
}
</style>
